#define _CRT_SECURE_NO_WARNINGS 1
#include"SeqList.h"

void TestSeqList1()
{
	SL s;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPushBack(&s, 7);
	SLPushBack(&s, 8);
	SLPushBack(&s, 99);
	SLPushBack(&s, 88);
	SLPushBack(&s,77);

	SLPrint(& s);
	SLDestroy(&s);
	SLInsert(&s, 4, 40);
	SLPrint(&s);

	SLInsert(&s, 6, 60);
	SLPrint(&s);
	SLErase(&s, 2);
	SLPrint(&s);


}

void TestSeqList2()
{
	SL s;
	SLInit(&s);
	SLPushFront(&s,1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPrint(&s);
	SLInsert(&s, 4, 40);
	SLPrint(&s);

	SLInsert(&s, 1, 60);
	SLPrint(&s);
	SLErase(&s, 2);
	SLPrint(&s);

	int m=SLFind(&s, 5);
	printf("%d", m);

}

int main()
{
	TestSeqList2();
	return 0;
}